home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15048 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  43 lines

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Passing to C prog from Dos Prompt
  5. Date: 16 Apr 1996 15:23 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <16APR199615234305@erich.triumf.ca>
  9. References: <4l0qei$gj9@soap.news.pipex.net>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4l0qei$gj9@soap.news.pipex.net>, . writes...
  14. >i apologise if this question has done the rounds before,
  15. >as I haven't got the time to check all 1500 odd articles.
  16. >basically, I want to pass some parameters to a program from DOS
  17. >eg, for the program IDLP :
  18. >C:\>IDLP /?
  19. >C:\>IDLP test.dlt
  20. >This is annoying as i had the routinew for this but seem to have lost
  21. >it. ARRGH!
  22.  
  23. int main(int argc, char* argv[])
  24.     {
  25.      /* argc will = 2        */
  26.     /* argv[1] will be "test.dlt"  */
  27.     /* argv[0] _may_ be "IDLP" (depends on operating system...) */
  28.  
  29.  
  30.  
  31.  
  32. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  33. Internet: bennett@triumf.ca         | of one another only when one can be
  34. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  35. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  36. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  37. or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
  38. or: http:://vancouver-webpages.com/peter/index.html
  39.  
  40.